import { ezvizInstance } from "./utils/ezviz";
import { ezvizAPIURL } from "@/configs/jy";

// 获取AccessToken
export const tokenGet = (params: { appKey: string; appSecret: string }) => ezvizInstance.post(ezvizAPIURL + "/api/lapp/token/get", params);
// 获取播放地址
export const liveAddressGet = (params: { accessToken: string; deviceSerial: string; protocol: number; channelNo: number; code?: string }) => ezvizInstance.post(ezvizAPIURL + "/api/lapp/v2/live/address/get", params);
// 获取视频通道列表
export const cameraList = (params: { accessToken: string; pageStart: number; pageSize: number }) => ezvizInstance.post(ezvizAPIURL + "/api/lapp/camera/list", params);
// 抓拍
export const deviceCapture = (params: { accessToken: string; deviceSerial: string; channelNo: number }) => ezvizInstance.post(ezvizAPIURL + "/api/lapp/device/capture", params);
